package entity;

import java.io.Serializable;

public class Book{
	/**
	 * Book绫荤鏈夊睘鎬э紝瀵瑰簲鏁版嵁搴撳瓧娈�
	 */
	private int uuid;
	private String bookName;
	private String picUrl;
	private float price;
	
	/**
	 * Book绫绘瀯閫犲嚱鏁帮紝鐢ㄤ簬鍒涘缓Book瀵硅薄鍒濆鍖栨暟鎹�
	 */	
	public Book(int uuid, String bookName, String picUrl,float price){
		this.uuid = uuid;
		this.bookName = bookName;
		this.picUrl = picUrl;
		
		this.price = price;
	}
	
	/**
	 * Book绫绘瀯閫犲嚱鏁帮紝鐢ㄤ簬鍒涘缓Book瀵硅薄鍒濆鍖栨暟鎹�
	 */	
	public Book(String bookName, String picUrl,float price){
		this.bookName = bookName;
		this.picUrl = picUrl;
		this.price = price;
	}
	
	/**
	 * Book绫婚粯璁ゆ瀯閫犲嚱鏁帮紝娌℃湁鍒濆鍖栨暟鎹�
	 */		
	public Book() {
	}
	
	/**
	 * 鏄剧ずBook瀵硅薄鐨勪俊鎭�
	 */
	public String toString(){
		return (this.uuid + "," + this.bookName + "," + this.picUrl + "," + this.price);
	}
	
	public int getUuid() {
		return uuid;
	}
	public void setUuid(int uuid) {
		this.uuid = uuid;
	}
	public String getBookName() {
		return bookName;
	}
	public void setBookName(String bookName) {
		this.bookName = bookName;
	}
	public String getPicUrl() {
		return picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	public float getPrice() {
		return price;
	}
	public void setPrice(float price) {
		this.price = price;
	}
}
